package com.youyou.login.controller;

import com.youyou.login.feign.LoginFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    private LoginFeign loginFeign;


    @RequestMapping("/orderTest")
    public String orderTest() {
        String s = loginFeign.loginTest();
        System.out.println(s);

        return s;
    }


}
